home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / coding / 80x86 / code32.lzh / START32.INC < prev    next >
Text File  |  1993-01-09  |  952b  |  32 lines

  1. extrn   v86r_ah:byte, v86r_al:byte, v86r_bh:byte, v86r_bl:byte
  2. extrn   v86r_ch:byte, v86r_cl:byte, v86r_dh:byte, v86r_dl:byte
  3. extrn   v86r_ax:word, v86r_bx:word, v86r_cx:word, v86r_dx:word
  4. extrn   v86r_si:word, v86r_di:word, v86r_bp:word, v86r_flags:word
  5. extrn   v86r_ds:word, v86r_es:word
  6. extrn   _totalextmem:word, _code16a:dword, _code32a:dword, _hextbl:byte
  7. extrn   _lomembase:dword, _lomemtop:dword, _himembase:dword, _himemtop:dword
  8.  
  9. extrn   _putdosmsg:near, _getvect:near, _setvect:near, _exit:near
  10. extrn   _getmem:near, _getlomem:near, _gethimem:near, _lomemsize:near
  11. extrn   _himemsize:near, _ret:near
  12.  
  13. ; Move realatively adjusted pointer to reg
  14. @rlp    macro reg, ptr
  15.         mov ®,&ptr
  16.         sub ®,_code32a
  17. endm
  18.  
  19. ; Output a byte to DX
  20. @outb           macro   val
  21.         mov al,&val
  22.         out dx,al
  23. endm
  24.  
  25. ; Output a word to DX
  26. @outw           macro   val
  27.         mov ax,&val
  28.         out dx,ax
  29. endm
  30.  
  31.  
  32.